<?php
/**
 * @see Zend_Form_Element_Xhtml
 */
require_once 'Zend/Form/Element/Xhtml.php';

/**
 * Помощник вида, реализующий массив из трех элементов для указаня размера
 * 
 * @category Phorm
 * @package View_Helper
 * @name /Phorm/View/Helper/FormSize.php
 * @copyright phorm.ru
 * @since 07.10.2013
 * @author vladimir@kachalov.net
 */

class Phorm_View_Helper_FormSize extends Zend_View_Helper_FormElement {
	
	protected $_translate;
	
	public function formSize($name, $value = array(), $attribs = array(), $options = array()) {
		
		$elements = array(
			$this->view->formText($name, isset($value[0]) ? $value[0] : null, $attribs),
			$this->view->formText($name, isset($value[1]) ? $value[1] : null, $attribs),
			$this->view->formText($name, isset($value[2]) ? $value[2] : null, $attribs),
		);
		
		return implode('&nbsp;x&nbsp;',$elements);
		
	}
	
}